#login-container {
  width: 100%;
  height: 100%;
  display: flex;

  .avatar {
    width: 40px;
    height: 40px;
    display: inline-block;
    border: 1px solid gainsboro;
    border-radius: 50%;
    cursor: pointer;
  }
}

/* 弹窗背板淡出动画 */
.fade-leave-active {
  transition: opacity 0.3s ease;
}
.fade-leave-to {
  opacity: 0;
}

/* 登录弹窗 */
#login-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 确保覆盖其他元素 */

  .login-height {
    height: 400px;
  }

  .register-height {
    height: 450px;
  }

  /* 弹窗容器 */
  #dialog-container {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    width: 800px;
    min-width: 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: height 0.3s ease;  /* 仅针对高度变化设置过渡效果 */

    /* logo */
    .login-logo {
      flex: 1.7;
      height: 380px;
      min-width: 200px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .login-logo img {
      width: 80%;
      height: 80%;
      object-fit: contain;
    }

    /* 分割线 */
    .divider {
      border: 1px solid #f4f6f6;
      box-sizing: border-box;
      height: 80%;
      margin: 0 5px;
    }

    /* 表单容器 */
    .form-box {
      flex: 1.5;
      min-width: 200px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding: 10px 5px;

      .code-box {
        display: flex;
        justify-content: space-between;

        .code-input {
          width: 120px;
        }

        .code-img {
          border: 1px solid #dcdfe6;
          width: 80px;
          cursor: pointer;
          object-fit: fill;
        }
      }

      .button-box {
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 200px;

        .register-button {
          background-color: #D42A2A;
          border-color: #D42A2A;
        }
        .register-button:active {
          background-color: #9f1313;
          border-color: #9f1313;
        }

        .text-btn {
          display: flex;
          justify-content: center;
        }
      }
    }

    /* 登录表单 */
    .login-form {
      height: 300px;
      align-content: center;
    }

    /* 注册表单 */
    .register-form {
      height: 370px;
      overflow-y: auto;
    }

    /* 关闭按钮 */
    .close-button {
      position: absolute;
      top: 10px;
      right: 17px;
      font-size: 30px;
      cursor: pointer;
      margin-top: 0;
      z-index: 200;
    }

    .close-button:hover {
      color: #409EFF;
    }
  }

}

#forget-pwd-container {
  height: 50vh;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;

  .from-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .code-box {
      display: flex;
      justify-content: space-between;

      .code-input {
        width: 120px;
      }

      .code-img {
        border: 1px solid #dcdfe6;
        width: 80px;
        cursor: pointer;
        object-fit: fill;
      }
    }
  }
}